//
//  HomeTableViewController.swift
//  SinaWeiboDemo
//
//  Created by 伍禄林 on 16/9/20.
//  Copyright © 2016年 伍禄林. All rights reserved.
//

import UIKit
import AFNetworking
import SVProgressHUD

class HomeTableViewController: BaiseTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        visitorLoginView?.setUiInfo(imageNamed: nil, tips: "关注一些人，回这里看看有什么惊喜关注一些人，回这里看看有什么惊喜")
        let AFN = AFHTTPSessionManager()

        AFN.responseSerializer.acceptableContentTypes?.insert("text/html")
        SVProgressHUD.show()
        AFN.get("http://www.weather.com.cn/data/sk/101010100.html", parameters: nil, progress: nil, success: { (task, result) in
                SVProgressHUD.dismiss()
                print("result======\(result)")
            }) { (task, error) in
                SVProgressHUD.showError(withStatus: "请求数据失败！")
                print("error======\(error)")
        }
    }

  
}
